<template>
  <el-checkbox-group v-bind="item" v-model="model[item.prop]" v-on="item.events || {}">
    <el-checkbox
      v-for="(option, index) in item.options"
      :key="index"
      :label="option[item.valueKey || 'value']"
      v-bind="option.bind"
    >
      {{ option[item.labelKey || 'label'] }}
    </el-checkbox>
  </el-checkbox-group>
</template>

<script setup>
const props = defineProps({
  item: Object,
  model: Object
})
</script>
